package com.guoxin.factory.factorymethod.pizzastore.order;

import com.guoxin.factory.factorymethod.pizzastore.pizza.BJCheesePizza;
import com.guoxin.factory.factorymethod.pizzastore.pizza.BJPepperPizza;
import com.guoxin.factory.factorymethod.pizzastore.pizza.Pizza;

public class LDOrderPizza extends OrderPizza {

	@Override
	public Pizza createPizza(String type) {
		Pizza pizza;
		switch (type) {
		case "cheese":
			pizza = new BJCheesePizza("伦敦奶酪pizza");
			break;
		case "pepper":
			pizza = new BJPepperPizza("伦敦胡椒pizza");
			break;
		default:
			pizza = null;
			break;
		}
		return pizza;
	}

}
